# 个税计算
profit = int(input("请输入您的奖金金额："))  # 奖金
bonus = 0  # 提成
i = 0      # 初始化变量
# 提成金额区间
thresholds = [100000, 100000, 200000, 200000, 400000]
# 提成百分比
rates = [0.1, 0.075, 0.05, 0.03, 0.015, 0.01]
# 5个档次计算  0 - 4
while i < 5:
    if profit <= thresholds[i]:
        bonus += profit * rates[i]
        profit = 0
        break
    else:
        bonus += thresholds[i] * rates[i]
        profit -= thresholds[i]

    bonus += profit * rates[-1]
print(bonus)  # 提成金额
